package com.kedacom.demo.springjta;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class ProductService {

	@Resource
	private ProductDao productDao;

	public void save(Product product) {
		productDao.save(product);
	}

	public int getCountByName(String productName) {
		return productDao.getCountByName(productName);
	}

}
